import request from '@/utils/request'
import type { LoginRequest, LoginResponse } from '@/types/api'

export const login = (data: LoginRequest) => {
  return request.post('/auth/login', data)
}

export const logout = () => {
  return request.post('/auth/logout')
}